import request from '@/utils/request'

// 获取table数据
export function getTableList(data) {
  var d={
    categoryId: data.categoryId,
    fields: data.fields,
    menuId: data.menuId,
    type: data.type,
    propertyName: data.propertyName,
    propertyValue: data.propertyValue,
    state: data.state,
    order: data.order,
    searchcolumn:data.searchcolumn,
    subTableName:data.sub_table_name,
  }
  return request({
    url: '/archive/lc/bgqx/identify/list?pageNum='+data.pageNum+'&pageSize='+data.pageSize,
    method: 'post',
    data: d
  })
}

//点击树节点获取查询框
export function getqueryfieldList(data) {
  return request({
    url: '/archive/wjzl/getqueryfieldbytreenode',
    method: 'POST',
    data: data
  })
}

//获取表头
export function getthbytreenodeHeaderList(data) {
  return request({
    url: '/archive/wjzl/getthbytreenode',
    method: 'POST',
    data: data
  })
}

// 调整保管期限发起审批
export function approval(data) {
  return request({
    url: '/archive/lc/bgqx/identify/cancel/approval',
    method: 'post',
    data: data
  })
}

// 获取门类名称
export function getCategoryName(id) {
  return request({
    url: '/archive/category/' + id,
    method: 'get'
  })
}
